package com.situ.day06;

import java.util.Scanner;

public class TestNumber {
	
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("请选择算法");
		System.out.println("1为加法");
		System.out.println("2为减法");
		System.out.println("3为乘法");
		System.out.println("4为除法");
		System.out.println("###################");
		int count = scanner.nextInt();
		System.out.println("请输入两个整数：");
		int num1 = scanner.nextInt();
		int num2 = scanner.nextInt();
		System.out.println("###################");
		Number number = new Number(num1, num2);
		
		switch (count) {
		case 1:
			number.add(num1, num2);
			break;
		case 2:
			number.sub(num1, num2);
			break;
		case 3:
			number.mul(num1, num2);
			break;
		case 4:
			number.div(num1, num2);
			break;
		}
	}
}
